package com.heima.apis.wemedia;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUserRealname;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "leadnews-wemedia")
public interface IWemediaClient {

    @PostMapping("/api/v1/pass")
    void authPass(@RequestBody ApUserRealname realname);

    @GetMapping("/api/v1/channel/list")
    public ResponseResult getHotChannels();

    @GetMapping("/api/v1/list")
    List<WmSensitive> selectList();

}
